package com.centit.ideaInfo.service.impl;

import java.util.Map;

import javax.annotation.Resource;
import javax.validation.constraints.NotNull;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.centit.framework.jdbc.service.BaseEntityManagerImpl;
import com.centit.ideaInfo.dao.IdeaInfoDao;
import com.centit.ideaInfo.po.IdeaInfo;
import com.centit.ideaInfo.service.IdeaInfoManager;
import com.centit.support.database.utils.PageDesc;
@Service
public class IdeaInfoManagerImpl extends BaseEntityManagerImpl<IdeaInfo,java.lang.String,IdeaInfoDao>
implements IdeaInfoManager{

public static final Log log = LogFactory.getLog(IdeaInfoManager.class);

	
	private IdeaInfoDao ideaInfoDao ;

	
	@Resource(name = "ideaInfoDao")
    @NotNull
	public void setIdeaInfoDao(IdeaInfoDao baseDao)
	{
		this.ideaInfoDao = baseDao;
		setBaseDao(this.ideaInfoDao);
	}

	@Override
	public void deleteApplyIdea(String flowRecId) {
		ideaInfoDao.deleteApplyIdea(flowRecId);
	}

	@Override
	public JSONArray listIdeaInfo(Map<String, Object> searchColumn, PageDesc pageDesc) {
		return ideaInfoDao.listIdeaInfo(searchColumn, pageDesc);
	}

	@Override
	public void updateLastIdeaInfo(String flowRecId, String userCode, String content) {
		ideaInfoDao.updateLastIdeaInfo(flowRecId,userCode,content);
		
	}

	@Override
	public JSONObject getLastIdeaInfo(String flowRecId) {
		return ideaInfoDao.getLastIdeaInfo(flowRecId);
	}
	
	
	
	
}
